import WechatUtilsJS = require("./js/WechatUtils.js");

const { ccclass, property } = cc._decorator;

@ccclass
export default class WeChatUtils extends cc.Component {

    public static init(callBack: any,headline:string,galleryid:number,bg_style:number) {

        WechatUtilsJS.shareConfig(callBack,headline,galleryid,bg_style);
    }

    /**
     * 使用微信预览图片
     * @param url 需要预览的图片的地址
     */
    public static previewImage(url: string) {

        WechatUtilsJS.previewImage(url);
    }
}
